import service from '/@/utils/request';
import axios from 'axios';

export function get_company_list(name: string, page_no: number, page_size: number) {
    return service.post<any>("/company/list", {
            name: name,
            pageSize: page_size,
            pageNo: page_no,

    })
}

export function add(name: string, money: string,address: string, tel: string, note: string) {
    return service.post<any>("/company/add", {
            name: name,
            money: money,
            address: address,
            tel: tel,
            note: note
    })
}

export function update(id:string,name: string, money: string,address: string, tel: string, note: string) {
    return service.post<any>("/company/update", {
        id:id,
        name: name,
        money: money,
        address: address,
        tel: tel,
        note: note

    })
}

export function del(id:string) {
    return service.post<any>("/company/del", {
        id: id,
    })
}
export function company_type_sel() {
    return service.post<any>("/company/company_type_sel", {
    })
}